<style type="text/css">
#allmap{height:300px;width:100%;}
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:0.2rem;color:#19b955}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.delete{color: #bebebe;text-decoration:line-through;font-size:0.55rem}
</style>
<div class="fui-page order-create-page fui-page-current"  style="background:#fff">
	<div class="fui-content">
		<div class="fui-cell-group fui-cell-click" style="margin-top:0">
				<div class="fui-cell">
					<div class="fui-cell-info">
						<div class="fui-cell-info text bold" style="font-size:1.2rem;color:#333">房屋账单</div>
						<div class="subtitle" style="font-size:0.5rem;margin-top:0.5rem;line-height:1.2rem">
						<span>{{pagedata.house.building.area ||pagedata.setting.quan_title}}{{pagedata.house.building.qishu}}{{pagedata.house.dongshu}}栋{{ifelse(pagedata.house.danyuan,pagedata.house.danyuan+'单元','')}}{{pagedata.house.room_num}}</span>
						<span class="fui-tag-red-o r-f" style="padding:0.2rem 0.5rem" href="javascript:;" ng-click="access_json('core/member.recharge/')">充值</span>
						</div>
					</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-text bold">全部账单</div>
					<div class="fui-cell-remark">共￥{{pagedata.house.fee ||'0.00'}}待缴</div>
				</div>
	</div>
	<div class="fui-cell-group" ng-repeat="item in pagedata.orders" style="margin:0.4rem;">
		<div style="width:100%;background-color:#b39475;border-radius: 0.2rem;color:#fff;text-align:left;padding:0 0.3rem">
            <div class="fui-cell">
				<div class="fui-cell-text bold" style="font-size:0.75rem;color:#7d6951;">{{item.time || 4}}月账单 <span class="subtitle" style="margin-left:0.2rem;color:#7d6951;font-size:0.5rem">{{item.starttime || '1/01'}}-{{item.endtime || '1/30'}}</span></div>
				<div class="fui-cell-remark noremark" style="color:#7d6951;">单位：元</div>
			</div>
			<div class="fui-cell" style="margin-top:1rem;">
				<div class="fui-cell-text bold" style="color:#fff;font-size:0.9rem">{{item.ispay==1?'本月已缴清':'本月还未缴清'}}</div>
			</div>
			<div class="fui-cell">
				<div class="jy-2" style="color:#e0d9c9">
					<div>{{item.fee ||'0.00'}}</div>
					<div>账单总额</div>
				</div>
				<div class="jy-2" style="color:#e0d9c9">
					<div>{{item.fee ||'0.00'}}</div>
					<div>已缴金额</div>
				</div>
			</div>
		</div>

		<div class="fui-cell">
				<div class="fui-cell-icon"><i class="icon icon-success"></i></div>
				<div class="fui-cell-text bold" style="color:#999">物业服务费 （不支持分开缴纳）</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-icon"></div>
				<div class="fui-cell-text bold" style="color:#999">{{item.gao?'高层':'底层'}}物业服务费</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-icon"></div>
				<div class="fui-cell-text bold" style="color:#999">日常收取的维修资金</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-icon"><i class="icon icon-success"></i></div>
				<div class="fui-cell-text bold" style="color:#999">室内车位租凭费</div>
			</div>
        
		<div ng-if="item.ispay!=1 && item.fee>0" class="weui_btn weui_btn_primary" style="margin:0.5rem 2rem" href="javascript:" ng-click="pagedata.pay(item.id)">直接缴费</div>
	</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">

scope.pagedata.pay=function(id){
	var params={
		data:{'id':id},
		op:'pay',
		callback:function(res){
			if(res.payid){
				require(['tool'],function(tool){
					tool.pay(res.payid,function(res){
						if(res.type=='success'){
							scope.message('支付成功！','');
							
						}else{
							scope.message('支付失败！失败原因：'+res.message,'error');
						}
					});
				});
			}
		}
	};
	scope.post_json(params);

}
</script>
<div ng-include="sys_html('_footer')"></div>
